<%@page import="dao.CategoryDAO"%>
<%@page contentType="text/html" pageEncoding="UTF-8" import="util.*, pojo.*, bus.*,java.util.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<link rel="stylesheet" href="css/style.css" type="text/css" />	
		<title>Sản phẩm Apple</title>
	</head>
	<body>		
		<div id="header">
		<%@include file="header/index.jsp" %>
		</div>
		<div id="content">
			<div id="menu_left">
				<ul>
					<li><a href="product.html?cate=5">Macbook Pro</a></li>
					<li><a href="product.html?cate=7">Macbook Air</a></li>
					<li><a href="product.html?cate=4">iPhone</a></li>
					<li><a href="product.html?cate=6">iPad</a></li>					
				</ul>
			</div>
			<div id="content_right">
				<% if (ProductBUS.lstProduct().size()!=0){
					for(int i=0;i<ProductBUS.lstProduct().size();i++){
						Product p = ProductBUS.lstProduct().get(i);
				%>
				<div id="product_item">
					<img alt="" src="<%=p.getImage()%>">
					<br/>
					<label class="name"><%=p.getName()%></label>
					<br/>
					<label class="price"><%=p.getPrice() %></label>
				</div>
				<%}
					}else{ %>
					<label>Sản phẩm chưa được cập nhật. Vui lòng chọn sản phẩm khác. Cám ơn</label>
				<%}%>				
			</div>
		</div>
		<div id="footer">
		<%@include file="footer/index.jsp" %>
		</div>
	</body>
</html>